require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('animate.css')
require('../css/advert.less')

document.addEventListener('DOMContentLoaded', function() {

    /* 获取元素 */
    let countDown = document.querySelector('#countDown')


    function setcountDown() {
        let time = 5
        let tiemId = setInterval(function() {
            time--
            if (time <= 0) {
                location.href = './login.html'
                clearInterval(tiemId)
            } else {
                countDown.textContent = time + 's'
            }
        }, 1000)
    }
    setcountDown()


})